cmake_minimum_required(VERSION 2.8)
project(useEigen)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-O3")

#message($ENV{HOME})
#message($ENV{EIGEN_ROOT})

# 添加Eigen头文件
file(TO_CMAKE_PATH $ENV{EIGEN_ROOT} EIGEN_INCLUDE)
#message(${EIGEN_INCLUDE})

#include_directories("/usr/include/eigen3")
include_directories(${EIGEN_INCLUDE})
add_executable(eigenMatrix eigenMatrix.cpp)
